package m3u8

import (
	"gitee.com/kaylee595/m3u8/token"
)

type Map struct {
	URI string
	Key *Key
}

const (
	keyMapURI = "URI"
)

func ParseMap(attrs token.Attributes, key *Key) *Map {
	return &Map{
		URI: attrs[keyMapURI].FromString(),
		Key: key,
	}
}
